package com.yanqu.road.entity.enums.activity.jieshi;

/**
 * 灯火街市地块类型
 */
public enum eJieShiPositionType {

    Blank("空白", 0),

    Street("街道", 1),

    Start("起点", 2),

    DefaultUnLock("普通地块（初始默认解锁）", 3),

    Special("特殊地块（消耗解锁）", 4),

    End("终点", 5),
    ;

    private String name;

    private int intValue;

    eJieShiPositionType(String name, int value) {
        intValue = value;
        this.name = name;
    }

    public int getValue() {
        return intValue;
    }

    public String getName() {
        return name;
    }

    public static eJieShiPositionType forValue(int value) {
        for (eJieShiPositionType type : eJieShiPositionType.values()) {
            if (type.intValue == value) {
                return type;
            }
        }
        return null;
    }
}
